.home {
  min-height: 100vh;
  padding: 24px;
  background: linear-gradient(180deg, rgba(100,181,246,0.05) 0%, rgba(255,255,255,1) 100%);
  position: relative;
  overflow: hidden;
  
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(180deg, rgba(100,181,246,0.1) 0%, rgba(100,181,246,0) 100%);
    z-index: 0;
  }
}

.home-title {
  padding: 24px;
  margin: 0 0 32px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 32px rgba(100,181,246,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(100,181,246,0.08);
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(100,181,246,0.15);
    border-color: rgba(100,181,246,0.12);
  }
}

.home-title .title {
  font-size: 28px;
  font-weight: 700;
  color: #4780ab5a;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.2;
  position: relative;
  padding-bottom: 12px;
  
  &::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: rgba(255,255,255,0.5);
    transform: translateX(-50%);
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  &:hover::after {
    width: 80px;
    background: rgba(255,255,255,0.8);
  }
}

@media (min-width: 768px) {
  .home-title .title {
    font-size: 30px;
  }
}

.search-bar {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.quick-actions {
  display: flex;
  justify-content: space-around;
  margin-bottom: 32px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 28px;
  box-shadow: 0 6px 32px rgba(100,181,246,0.08);
  border: 1px solid rgba(100,181,246,0.12);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(100,181,246,0.02) 0%, rgba(144,202,249,0.01) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  &::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(100,181,246,0.3) 0%, rgba(144,202,249,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  &:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(100,181,246,0.15);
    border-color: rgba(100,181,246,0.2);
    background: rgba(255, 255, 255, 0.98);
    
    &::before {
      opacity: 1;
    }
    
    &::after {
      opacity: 1;
    }
  }
}

::v-deep .quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.95) 100%);
  box-shadow: 0 4px 20px rgba(100,181,246,0.1);
  
  &:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(100,181,246,0.2);
    
    &::after {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  &::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(100,181,246,0.1) 10%, transparent 10.01%);
    transform: scale(0);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }
}

::v-deep .quick-action-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(100,181,246,0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  
  .uni-icon {
    font-size: 28px;
  }
  
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .quick-action:hover & {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 24px rgba(100,181,246,0.4);
    
    &::before {
      opacity: 1;
    }
  }
}

::v-deep .quick-action[data-type="voice"] .quick-action-icon {
  background: linear-gradient(145deg, #7986cb 0%, #9fa8da 100%);
}

::v-deep .quick-action[data-type="scan"] .quick-action-icon {
  background: linear-gradient(145deg, #4dd0e1 0%, #80deea 100%);
}

::v-deep .quick-action[data-type="add"] .quick-action-icon {
  background: linear-gradient(145deg, #42a5f5 0%, #64b5f6 100%);
}

::v-deep .quick-action-text {
  font-size: 14px;
  font-weight: 500;
  color: #64b5f6;
  text-align: center;
  margin-top: 8px;
  transition: all 0.2s ease;
  
  .quick-action:hover & {
    color: #90caf9;
  }
}

.notes-section {
  padding: 0 12px 16px;
  position: relative;
  overflow: hidden;
  
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(100,181,246,0.02) 0%, rgba(144,202,249,0.01) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  &:hover {
    &::before {
      opacity: 1;
    }
  }
}

.section-title {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 32px;
  letter-spacing: -0.3px;
  position: relative;
  padding-left: 24px;
  
  &::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 24px;
    background: linear-gradient(180deg, #64b5f6 0%, #90caf9 100%);
    border-radius: 3px;
    transform: translateY(-50%);
    transition: all 0.3s ease;
  }
  
  &::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #64b5f6 0%, #90caf9 100%);
    border-radius: 2px;
    opacity: 0.8;
    transition: all 0.3s ease;
  }
  
  &:hover {
    &::before {
      height: 32px;
      background: linear-gradient(180deg, #90caf9 0%, #64b5f6 100%);
    }
    
    &::after {
      width: 160px;
      opacity: 1;
    }
  }
}

.notes-list {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  position: relative;
  
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(100,181,246,0.02) 0%, rgba(144,202,249,0.01) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  &:hover {
    &::before {
      opacity: 1;
    }
  }
  
  @media (min-width: 768px) {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
  }
  
  @media (min-width: 1024px) {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  }
}

::v-deep .note-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 6px 32px rgba(100,181,246,0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(100,181,246,0.12);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  gap: 16px;
  
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(100,181,246,0.02) 0%, rgba(144,202,249,0.01) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  &::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(100,181,246,0.3) 0%, rgba(144,202,249,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  &:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(100,181,246,0.15);
    border-color: rgba(100,181,246,0.2);
    background: rgba(255, 255, 255, 0.95);
    
    &::before {
      opacity: 1;
    }
    
    &::after {
      opacity: 1;
    }
    
    .note-title::before {
      transform: scale(1.2);
      box-shadow: 0 4px 8px rgba(100,181,246,0.3);
    }
    
    .note-title::after {
      opacity: 1;
    }
    
    .note-summary {
      color: #444;
      
      &::before {
        background: linear-gradient(180deg, rgba(100,181,246,0.4) 0%, rgba(144,202,249,0.2) 100%);
        width: 3px;
      }
    }
    
    .note-meta {
      color: #888;
      
      &::before {
        width: 60px;
        background: linear-gradient(90deg, rgba(100,181,246,0.4) 0%, rgba(144,202,249,0.2) 100%);
      }
      
      .note-time::before {
        opacity: 1;
      }
      
      .note-tags .tag {
        background: transparent;
        color: #90caf9;
        
        &::before {
          opacity: 1;
        }
      }
    }
  }
  
  @media (min-width: 768px) {
    min-height: 280px;
  }
  
  @media (min-width: 1024px) {
    min-height: 320px;
  }
}

::v-deep .note-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  padding-left: 24px;
  
  &::before {
    content: '';
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(100,181,246,0.2));
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  
  &::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(100,181,246,0.2) 0%, rgba(144,202,249,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  &:hover {
    &::before {
      opacity: 1;
      transform: translateY(-50%) rotate(360deg);
      filter: drop-shadow(0 4px 8px rgba(100,181,246,0.3));
    }
    
    &::after {
      opacity: 1;
    }
  }
  
  @media (min-width: 768px) {
    font-size: 22px;
    gap: 16px;
    padding-left: 28px;
    
    &::before {
      width: 28px;
      height: 28px;
    }
  }
  
  @media (min-width: 1024px) {
    font-size: 24px;
    padding-left: 32px;
    
    &::before {
      width: 32px;
      height: 32px;
    }
  }
}
